function acco(title,index){
	var acco= $(this).accordion('getPanel',index);
	var menutree =$(acco).find('ul');
	  	menutree.tree({
			url : contextPath + '/menu/getChildren?parentId='+menutree.attr("id"),
			animate : true,
			cascadeCheck:false,
			onBeforeExpand: function(node, param) { 
				menutree.tree('options').url=contextPath + '/menu/getChildren?parentId=='+node.id;
			},
			onClick:function(node){
				var tab = $('#tabs').tabs('getTab',node.text);
				if(tab){
				$('#tabs').tabs('select',node.text);	
					return ;
				}
				if(node.attributes.type==1){
					var url =node.attributes.url;
					$('#tabs').tabs('add',{    
				    title:node.text,    
				    href:contextPath+url,
				    closable:true
					}); 
					}
			}
		});
}
